import { loadComponentPropertiesGroup } from './components'

const LOW_PRIORITY = 500;

export default function MagicPropertiesProvider(propertiesPanel, translate) {
  // ...
  this.getGroups = function (element) {
    // ...
    return function (groups) {
      loadComponentPropertiesGroup(groups, element, translate)
      return groups;
    };
  };

  propertiesPanel.registerProvider(LOW_PRIORITY, this);
}

MagicPropertiesProvider.$inject = ["propertiesPanel", "translate"];
